package com.zhuna.www.view;

import com.zhuna.www.po.User;

import java.util.Scanner;

public class MerchantMenu {
    private final Scanner scanner = new Scanner(System.in);

    public void menuformerchant(User user) {
        while (true) {
            System.out.println("\n=== 商户功能菜单 ===");
            System.out.println("1. 发布商品");
            System.out.println("2. 查看订单");
            System.out.println("3. 账户收入查询");
            System.out.println("4. 退出登录");
            System.out.print("请选择操作：");

            String choice = scanner.nextLine();

            switch (choice) {
                case "1":
                    System.out.println("【TODO】发布商品功能待开发");
                    break;
                case "2":
                    System.out.println("【TODO】查看订单功能待开发");
                    break;
                case "3":
                    System.out.println("【TODO】收入查询功能待开发");
                    break;
                case "4":
                    System.out.println("已退出登录。");
                    return;
                default:
                    System.out.println("输入错误，请重试！");
            }
        }
    }
}
